using System.ComponentModel.DataAnnotations;
using Crux.Core.Dapper.Attributes;

namespace Crux.Core.Dapper.Test;
[Table("test_model")]
public class TestModel
{
    [Key]
    [Column("id")]
    [Identity]
    public long Id { get; set; }
    /// <summary>
    ///
    /// </summary>
    [Column("password")]
    public string Password { get; set; } = string.Empty;
    [Column("modifyd_at")]
    [UpdatedAt(TimeKind = DateTimeKind.Local)]
    public DateTimeOffset ModifydAt { get; set; }
    [Column("amount")]
    public decimal Amount { get; set; }
    [Column("win_range")]
    public long WinRange { get; set; }
    [Column("effective")]
    public bool Effective { get; set; }
}